package net.risesoft.risereport.obj.authorization.domain;

import java.io.Serializable;

import org.apache.commons.lang.builder.CompareToBuilder;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ReflectionToStringBuilder;

/**
 * <p>
 * Title: RiseReport
 * </p>
 * <p>
 * Description: RiseReport
 * </p>
 * <p>
 * Copyright: Copyright (c) 2006
 * </p>
 * <p>
 * Company: SZRiseSoft
 * </p>
 * 
 * @author WangChui(baiyibing@gmail.com)
 * @version 1.0 TODO USERID NUMBER(9) not null, USERNAME VARCHAR2(30) not null,
 *          PASSWORD VARCHAR2(20), USERDESCRIPTION VARCHAR2(60), REGIONID
 *          NUMBER(9) not null, USERTYPE CHAR(1) not null, DEPARTMENT_GUID
 *          CHAR(38), ROLEID NUMBER, SPECIALITYCODE VARCHAR2(100) default 1 not
 *          null
 */

public class User implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -2466637918811262774L;

	private String userID;

	private String userName;

	private String password;

	private String userDescription;


	private String userType;
	private String userType2;

	private String department_GUID;

	private String roleID;

	private String specialityCode;
	
	private String MSTRUser;

	public String getMSTRUser() {
		return MSTRUser;
	}

	public void setMSTRUser(String mSTRUser) {
		MSTRUser = mSTRUser;
	}

	public int compareTo(Object o) {
		return CompareToBuilder.reflectionCompare(this, o);
	}

	public boolean equals(Object o) {
		return EqualsBuilder.reflectionEquals(this, o);
	}

	public String getDepartment_GUID() {
		return department_GUID;
	}

	public String getPassword() {
		return password;
	}


	public String getRoleID() {
		return roleID;
	}

	public String getSpecialityCode() {
		return specialityCode;
	}

	public String getUserDescription() {
		return userDescription;
	}

	public String getUserID() {
		return userID;
	}

	public String getUserName() {
		return userName;
	}

	public String getUserType() {
		return userType;
	}

	public String getUserType2() {
		return userType2;
	}

	public int hashCode() {
		return HashCodeBuilder.reflectionHashCode(this);
	}

	public void setDepartment_GUID(String department_GUID) {
		this.department_GUID = department_GUID;
	}

	public void setPassword(String password) {
		this.password = password;
	}


	public void setRoleID(String roleID) {
		this.roleID = roleID;
	}

	public void setSpecialityCode(String specialityCode) {
		this.specialityCode = specialityCode;
	}

	public void setUserDescription(String userDescription) {
		this.userDescription = userDescription;
	}

	public void setUserID(String userID) {
		this.userID = userID;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public void setUserType(String userType) {
		this.userType = userType;
	}

	public void setUserType2(String userType2) {
		this.userType2 = userType2;
	}

	public String toString() {
		return ReflectionToStringBuilder.toString(this);
	}
}
